//
//  MusicInfoHandle.h
//  MusicPlayer
//
//  Created by lanou3g on 16/5/11.
//  Copyright © 2016年 韩宏. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MusicInfo;

@interface MusicInfoHandle : NSObject

+ (MusicInfoHandle *)shareHandle;
//获取音乐信息
- (void)getMusicInfosWithUrl:(NSString *)urlString completion:(void(^)(NSArray *musicInfo, NSError *error))completion;

- (NSInteger)numberOfRowsInSection:(NSInteger)section;

- (MusicInfo *)musicCellForRowAtIndexPath:(NSIndexPath *)indexPath;

//根据索引获取上一首歌曲
- (MusicInfo *)musicInfoLastWithIndex:(NSInteger *)index;

//根据索引获取下一首歌曲
- (MusicInfo *)musicInfoNextWithIndex:(NSInteger *)index;

//随机获取歌曲
- (MusicInfo *)musicInfoRandomWithIndex:(NSInteger *)index;

@end
